package site.yunnong.atvris.portal.service;

import site.yunnong.atvris.common.dto.OssCallbackResult;
import site.yunnong.atvris.common.dto.OssPolicyResult;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zjh
 * @date 2021/7/24 19:13
 */
public interface OssService {

    /**
     * oss上传策略生成
     * @return
     */
    OssPolicyResult policy();

    /**
     * oss上传成功回调
     * @param request
     * @return
     */
    OssCallbackResult callback(HttpServletRequest request);

    /**
     * 删除oss文件
     * @param objectName
     * @return
     */
    void delete(String objectName);
}
